import 'package:getpro/getpro.dart';

class HomePageModel extends BasePageModel{
  RxInt count = 1.obs;
  @override
  void initModel() {
    /// 这里可以发起网络请求
    Future.delayed(Duration(seconds: 1),(){
      pageStatus.value = PageStatus.success;
    });
  }

  @override
  PageStatus setPageStatus() {
    return PageStatus.loading;
  }

  @override
  Future<bool> onRefresh()async {
    count.value = 1;
    return true;
  }

  @override
  Future<bool> onLoading() async{
    count.value++;
    return true;
  }

}